Chris Pollett > Old Classes >
CS185c

( Print View )

Student Corner:
  [Grades Sec3]

  [Submit Sec3]

  [Class Sign Up Sec3]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Quizzes]  [Project]

Practice Exams:
  [Mid]  [Final]

                           












HW#4 --- last modified February 17 2019 19:31:25..

Solution set.

Due date: Nov 24

Files to be submitted:
  Hw4.zip

Purpose: To experiment with the graphics capabilities of your phone. To experiment with the accelerometer and location based facilities.

Related Course Outcomes:

LO1 -- Create a working mobile phone application and test it both in a simulator and on a mobile device.

LO2 -- Write a mobile application that involves GUI components and makes use of touch events to manipulate these components.

LO4 -- Write a mobile application that uses a either the camera, location, or device graphics API.

Specification:

For this homework, I would like you to create a snow globe app. As too much time spent on Wikipedia tells us, Snow globes (Booles à neige) have a fascinating history dating back to at least the construction of the Eiffel Tower. Your snow globe app should have a background image that makes your app actually look like a snow globe. This image should rotate when you change the phone's orientation. When you tap on this image an alert with your current GPS coordinates should appear. When you shake your device it causes "snow" to become excited and make it start to fall towards the bottom (for the current orientation) of the screen. Further, doing a swipe on the screen should cause it to snow in the direction of the finger swipe. This "snowing" period should taper off and stop after 10 seconds. You should use either the 2D or 3D graphics API of your phone to animate the snow.

Point Breakdown

Coding style is decent. No dead code; No funky indentation; Decently documented. 1pt
When launched app appears to look like a snow globe due to cool background image. 1pt
App handle orientation as described above. 1pt
Tapping on snow globe image brings up GPS coordinates. 1pt
Shaking snow globe causes it to snow and it looks reasonably realistic. 2pts
Finger-swiping the snow globe causes it to snow in the direction of the swipe. 2pts
Animation uses either 2d or 3d graphics api of the device in question. 1pt
Snow tapers off after about 10 seconds. 1pt
Total10pts